var task1 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [56,64,51,55,62,51,60,49,57,53,56,51,60,58,60,60,56,57,52,60,58,63,62,61,60,56,59,57,52,55],
    capacity_after: [63,65,62,63,65,64,65,64,63,64,65,64,67,63,63,63,64,66,63,66,63,64,62,65,66,64,63,63,63,63],
    capacity_increment: [7,1,11,8,3,13,5,15,6,11,9,13,7,5,3,3,8,9,11,6,5,1,0,4,6,8,4,6,11,8],
    acknowledge_before: [73,70,71,69,70,66,65,70,72,72,69,66,69,72,65,73,73,68,73,67,69,66,67,72,63,72,73,72,67,69],
    acknowledge_after: [90,86,84,81,85,81,80,84,84,89,82,78,84,88,81,88,86,82,86,80,82,81,79,85,77,85,87,83,77,81],
    acknowledge_increment: [17,16,13,12,15,15,15,14,12,17,13,12,15,16,16,15,13,14,13,13,13,15,12,13,14,13,14,11,10,12],
    accomplishment_before: [60,55,58,54,57,60,63,54,66,61,62,60,52,63,61,51,68,66,56,60,53,62,64,66,63,53,58,60,62,61],
    accomplishment_after: [67,68,66,67,66,68,68,66,68,69,67,68,63,70,67,63,68,69,65,66,64,66,67,71,64,68,69,66,63,66],
    accomplishment_increment: [7,13,8,13,9,8,5,12,2,8,5,8,11,7,6,12,0,3,9,6,11,4,3,5,1,15,11,6,1,5]
}

var task2 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [63,65,62,63,65,64,65,64,63,64,65,64,67,63,63,63,64,66,63,66,63,64,62,65,66,64,63,63,63,63],
    capacity_after: [72,70,69,71,71,70,73,72,69,73,73,71,74,68,70,70,70,74,70,72,69,71,68,73,72,72,70,70,68,70],
    capacity_increment: [9,5,7,8,6,6,8,8,6,9,8,7,7,5,7,7,6,8,7,6,6,7,6,8,6,8,7,7,5,7],
    acknowledge_before: [73,72,73,69,64,68,67,74,70,68,67,70,70,71,70,70,64,68,69,69,71,67,76,73,74,65,67,72,71,68],
    acknowledge_after: [89,86,85,81,77,84,82,88,82,82,83,85,83,80,82,82,78,83,82,81,84,78,91,90,88,79,81,86,83,80],
    acknowledge_increment: [16,14,12,12,13,16,15,14,12,14,16,15,13,9,12,12,14,15,13,12,13,11,15,17,14,14,14,14,12,12],
    accomplishment_before: [67,68,66,67,66,68,68,66,68,69,67,68,63,70,67,63,68,69,65,66,64,66,67,71,64,68,69,66,63,66],
    accomplishment_after: [75,76,71,76,70,74,75,74,72,77,74,72,70,76,75,72,74,73,74,73,73,75,75,77,67,75,78,73,69,73],
    accomplishment_increment: [8,8,5,9,4,6,7,8,4,8,7,4,7,6,8,9,6,4,9,7,9,9,8,6,3,7,9,7,6,7]
}

var task3 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [72,70,69,71,71,70,73,72,69,73,73,71,74,68,70,70,70,74,70,72,69,71,68,73,72,72,70,70,68,70],
    capacity_after: [81,76,76,78,78,76,79,77,77,80,80,78,83,74,77,79,77,79,77,78,75,79,76,82,80,80,76,78,76,78],
    capacity_increment: [9,6,7,7,7,6,6,5,8,7,7,7,9,6,7,9,7,5,7,6,6,8,8,9,8,8,6,8,8,8],
    acknowledge_before: [77,72,71,71,70,75,69,67,76,76,73,70,71,68,72,65,73,72,71,68,73,69,72,67,74,70,71,75,70,68],
    acknowledge_after: [88,85,85,84,83,92,83,86,92,92,86,81,87,82,86,78,88,86,87,81,90,82,84,81,86,83,85,90,81,81],
    acknowledge_increment: [11,13,14,13,13,17,14,19,16,16,13,11,16,14,14,13,15,14,16,13,17,13,12,14,12,13,14,15,11,13],
    accomplishment_before: [75,76,71,76,70,74,75,74,72,77,74,72,70,76,75,72,74,73,74,73,73,75,75,77,67,75,78,73,69,73],
    accomplishment_after: [77,81,79,84,77,81,83,83,81,83,82,79,76,85,83,79,82,80,81,81,82,85,82,82,76,82,85,79,75,78],
    accomplishment_increment: [2,5,8,8,7,7,8,9,9,6,8,7,6,9,8,7,8,7,7,8,9,10,7,5,9,7,7,6,6,5]
}

var task4 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [81,76,76,78,78,76,79,77,77,80,80,78,83,74,77,79,77,79,77,78,75,79,76,82,80,80,76,78,76,78],
    capacity_after: [87,85,81,85,84,83,86,83,84,86,85,85,87,81,85,83,84,85,84,84,81,88,84,88,85,87,82,86,84,85],
    capacity_increment: [6,9,5,7,6,7,7,6,7,6,5,7,4,7,8,4,7,6,7,6,6,9,8,6,5,7,6,8,8,7],
    acknowledge_before: [75,68,69,65,67,69,70,70,68,67,70,77,68,71,66,67,71,72,71,66,71,67,65,68,68,70,74,68,73,74],
    acknowledge_after: [88,79,86,76,82,84,86,83,84,80,84,91,80,87,82,80,85,83,86,80,82,82,79,82,81,83,87,82,87,88],
    acknowledge_increment: [13,11,17,11,15,15,16,13,16,13,14,14,12,16,16,13,14,11,15,14,11,15,14,14,13,13,13,14,14,14],
    accomplishment_before: [77,81,79,84,77,81,83,83,81,83,82,79,76,85,83,79,82,80,81,81,82,85,82,82,76,82,85,79,75,78],
    accomplishment_after: [83,87,85,87,85,87,86,89,89,89,88,85,85,88,87,84,88,87,87,85,86,89,88,90,84,87,88,85,82,84],
    accomplishment_increment: [6,6,6,3,8,6,3,6,8,6,6,6,9,3,4,5,6,7,6,4,4,4,6,8,8,5,3,6,7,6]
}

var task5 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [87,85,81,85,84,83,86,83,84,86,85,85,87,81,85,83,84,85,84,84,81,88,84,88,85,87,82,86,84,85],
    capacity_after: [91,89,87,90,88,88,90,90,88,90,91,88,90,87,89,86,89,92,88,89,87,92,89,92,88,90,87,90,88,90],
    capacity_increment: [4,4,6,5,4,5,4,7,4,4,6,3,3,6,4,3,5,7,4,5,6,4,5,4,3,3,5,4,4,5],
    acknowledge_before: [68,67,70,70,69,68,71,67,68,75,72,67,65,74,74,76,69,68,67,69,71,64,69,72,65,70,67,69,72,77],
    acknowledge_after: [79,82,82,83,85,79,88,81,85,89,85,83,81,91,90,92,82,81,86,83,85,80,80,83,80,84,79,86,85,94],
    acknowledge_increment: [11,15,12,13,16,11,17,14,17,14,13,16,16,17,16,16,13,13,19,14,14,16,11,11,15,14,12,17,13,17],
    accomplishment_before: [83,87,85,87,85,87,86,89,89,89,88,85,85,88,87,84,88,87,87,85,86,89,88,90,84,87,88,85,82,84],
    accomplishment_after: [87,94,90,92,91,90,92,94,93,93,92,89,91,94,91,88,92,92,92,90,91,93,92,95,88,91,94,92,86,89],
    accomplishment_increment: [4,7,5,5,6,3,6,5,4,4,4,4,6,6,4,4,4,5,5,5,5,4,4,5,4,4,6,7,4,5]
}
var task6 = {
    //title: ['查智超','万润涛','熊子阳','万志强','马志鹏','方进','刘祥松','张友根','杨涛','金超','彭鸿鑫','谢志诚','石文刚','潘俊','陈玉尚','沈凡江','叶徵福','肖文欣','廖政','肖海平','李鑫','江涛','邱福杨','曹明轩','王丽君','何明欣','赵瑞杰','刘玮','胡涵玥','黄伟和'],
    title: ['刘芯蕾','甘倩','周家欢','刘佳瑶','陈婷','余莹莹','阳歆怡','申乐兰','曾秀婷','祝紫鸳','林明阳','龙文青','周兵兵','肖轩','刘昊','熊威','杨文义','孔勇名','许作华','肖文旺','徐权','刘旭东','何涛','周凌宇','郭宇斌','徐炳颧','邱珊','焦益强','姚述喆','张子恩'],
    capacity_before: [91,89,87,90,88,88,90,90,88,90,91,88,90,87,89,86,89,92,88,89,87,92,89,92,88,90,87,90,88,90],
    capacity_after: [95,94,93,93,93,93,94,94,94,93,95,91,95,92,94,90,93,96,94,94,93,95,93,96,93,95,90,93,94,93],
    capacity_increment: [4,5,6,3,5,5,4,4,6,3,4,3,5,5,5,4,4,4,6,5,6,3,4,4,5,5,3,3,6,3],
    acknowledge_before: [76,70,68,68,68,63,72,69,74,75,63,72,63,72,69,70,71,71,70,73,69,62,73,74,70,72,70,64,67,72],
    acknowledge_after: [91,85,83,84,84,80,88,87,89,92,79,87,77,88,87,86,86,88,85,89,85,79,89,92,87,89,86,79,82,88],
    acknowledge_increment: [15,15,15,16,16,17,16,18,15,17,16,15,14,16,18,16,15,17,15,16,16,17,16,18,17,17,16,15,15,16],
    accomplishment_before: [87,94,90,92,91,90,92,94,93,93,92,89,91,94,91,88,92,92,92,90,91,93,92,95,88,91,94,92,86,89],
    accomplishment_after: [92,94,94,95,94,93,93,97,96,95,94,93,94,96,95,93,96,95,96,93,93,95,96,98,94,93,97,96,92,94],
    accomplishment_increment: [5,0,4,3,3,3,1,3,3,2,2,4,3,2,4,5,4,3,4,3,2,2,4,3,6,2,3,4,6,5]
}

var data;

// 赋初值
data = task1;

function getTableLine(num) {
    var list = [];
    var bottom = 122;
    var height = 20;
    for (var i = 0; i < num; i++) {
        list.push({
            type: 'line',
            bottom: bottom - i * height,
            right: 80,
            style: {
                fill: '#333'
            },
            shape: {
                x1: 0,
                y1: 0,
                x2: 3200,
                y2: 0
            }
        });
    }
    return list;
}
var lineList = getTableLine(4);

function obtainCapacityOptionData(myData) {
    var option = {
        title: [{
            text: ' \n\n输入\n输出\n增值',
            bottom: 56,
            left: 20,
            textStyle: {
                lineHeight: 20,
                fontSize: 13,
                fontWeight: 'normal',
                formatter: function(value) {
                    return '{table|' + value + '}';
                },
                rich: {
                    table: {
                        align: 'center'
                    }
                }
            }
        }],
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                label: {
                    backgroundColor: '#283b56'
                }
            }
        },
        legend: {
            //data: ['能力增值', '输入', '输出']
        },
        grid: {
            bottom: 150,
            left: 80,
            right: 80
        },
        dataZoom: {
            show: true,
            start: 0,
            end: 150,
            maxSpan: 150
            // zoomLock: true
        },
        xAxis: [{
            barWidth: 15,
            type: 'category',
            //boundaryGap: true,
            data: myData.title,
            axisTick: {
                //length: 108,
                alignWithLabel: true
            },
            axisLabel: {
                formatter: function(value, index) {
                    var indexNum = 0;
                    for(var i = 0; i <= 31; i++){
                        if(value === myData.title[i]) {
                            indexNum = i;
                        }
                    }
                    return '{table|' + value +
                        '}\n{table|' + myData.capacity_before[indexNum] +
                        '}\n{table|' + myData.capacity_after[indexNum] +
                        '}\n{table|' + myData.capacity_increment[indexNum] + '}';
                },
                show: true,
                interval: 0,
                rich: {
                    table: {
                        lineHeight: 20,
                        align: 'center',
                        fontSize: 10
                    }
                }
            }
        }],
        yAxis: [{
            type: 'value',
            scale: true,
            minInterval: 1,
            name: '数量',
            splitLine: {
                show: false
            },
            min: function(v) {
                return Math.max((v.min - 10), 0);
            }
        }, {
            type: 'value',
            scale: true,
            name: '分数',
            splitLine: {
                show: false
            },
            axisLabel: {
                formatter: '{value}'
            }
        }],
        series: [{
            name: '增值',
            type: 'bar',
            barWidth: 20,
            yAxisIndex: 0,
            data: myData.capacity_increment
        }, {
            name: '增值前',
            type: 'line',
            color: '#FE9F0B',
            lineStyle: {
                width: 5,
                color: '#FE9F0B'
            },
            width: 6,
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.capacity_before
        }, {
            name: '增值后',
            type: 'line',
            color: '#60B5F6',
            lineStyle: {
                width: 5,
                color: '#60B5F6'
            },
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.capacity_after
        }],
        graphic: lineList
    };
    return option;
}

function obtainAcknowledgeOptionData(myData) {
    var option = {
        title: [{
            text: ' \n\n输入\n输出\n增值',
            bottom: 56,
            left: 20,
            textStyle: {
                lineHeight: 20,
                fontSize: 13,
                fontWeight: 'normal',
                formatter: function(value) {
                    return '{table|' + value + '}';
                },
                rich: {
                    table: {
                        align: 'center'
                    }
                }
            }
        }],
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                label: {
                    backgroundColor: '#283b56'
                }
            }
        },
        legend: {
            //data: ['能力增值', '输入', '输出']
        },
        grid: {
            bottom: 150,
            left: 80,
            right: 80
        },
        dataZoom: {
            show: true,
            start: 0,
            end: 150,
            maxSpan: 150
            // zoomLock: true
        },
        xAxis: [{
            type: 'category',
            //boundaryGap: true,
            data: myData.title,
            axisTick: {
                //length: 108,
                alignWithLabel: true
            },
            axisLabel: {
                formatter: function(value, index) {
                    var indexNum = 0;
                    for(var i = 0; i <= 31; i++){
                        if(value === myData.title[i]) {
                            indexNum = i;
                        }
                    }
                    return '{table|' + value +
                        '}\n{table|' + myData.acknowledge_before[indexNum] +
                        '}\n{table|' + myData.acknowledge_after[indexNum] +
                        '}\n{table|' + myData.acknowledge_increment[indexNum] + '}';
                },
                interval: 0,
                rich: {
                    table: {
                        lineHeight: 20,
                        align: 'center',
                        fontSize: 10
                    }
                }
            }
        }],
        yAxis: [{
            type: 'value',
            scale: true,
            minInterval: 1,
            name: '数量',
            splitLine: {
                show: false
            },
            min: function(v) {
                return Math.max((v.min - 10), 0);
            }
        }, {
            type: 'value',
            scale: true,
            name: '分数',
            splitLine: {
                show: false
            },
            axisLabel: {
                formatter: '{value}'
            }
        }],
        series: [{
            name: '增值',
            type: 'bar',
            barWidth: 20,
            yAxisIndex: 0,
            data: myData.acknowledge_increment
        }, {
            name: '增值前',
            type: 'line',
            color: '#FE9F0B',
            lineStyle: {
                width: 5,
                color: '#FE9F0B'
            },
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.acknowledge_before
        }, {
            name: '增值后',
            color: '#60B5F6',
            lineStyle: {
                width: 5,
                color: '#60B5F6'
            },
            type: 'line',
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.acknowledge_after
        }],
        graphic: lineList
    };
    return option;
}

function obtainAccomplishmentOptionData(myData) {
    option = {
        title: [{
            text: ' \n\n输入\n输出\n增值',
            bottom: 56,
            left: 20,
            textStyle: {
                lineHeight: 20,
                fontSize: 13,
                fontWeight: 'normal',
                formatter: function(value) {
                    return '{table|' + value + '}';
                },
                rich: {
                    table: {
                        align: 'center'
                    }
                }
            }
        }],
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                label: {
                    backgroundColor: '#283b56'
                }
            }
        },
        legend: {
            //data: ['能力增值', '输入', '输出']
        },
        grid: {
            bottom: 150,
            left: 80,
            right: 80
        },
        dataZoom: {
            show: true,
            start: 0,
            end: 150,
            maxSpan: 150
            // zoomLock: true
        },
        xAxis: [{
            type: 'category',
            //boundaryGap: true,
            data: myData.title,
            axisTick: {
                //length: 108,
                alignWithLabel: true
            },
            axisLabel: {
                formatter: function(value, index) {
                    var indexNum = 0;
                    for(var i = 0; i <= 31; i++){
                        if(value === myData.title[i]) {
                            indexNum = i;
                        }
                    }
                    return '{table|' + value +
                        '}\n{table|' + myData.accomplishment_before[indexNum] +
                        '}\n{table|' + myData.accomplishment_after[indexNum] +
                        '}\n{table|' + myData.accomplishment_increment[indexNum] + '}';
                },
                interval: 0,
                rich: {
                    table: {
                        lineHeight: 20,
                        align: 'center',
                        fontSize: 10
                    }
                }
            }
        }],
        yAxis: [{
            type: 'value',
            scale: true,
            minInterval: 1,
            name: '数量',
            splitLine: {
                show: false
            },
            min: function(v) {
                return Math.max((v.min - 10), 0);
            }
        }, {
            type: 'value',
            scale: true,
            name: '分数',
            splitLine: {
                show: false
            },
            axisLabel: {
                formatter: '{value}'
            }
        }],
        series: [{
            name: '增值',
            type: 'bar',
            barWidth: 20,
            yAxisIndex: 0,
            data: myData.accomplishment_increment
        }, {
            name: '增值前',
            type: 'line',
            color: '#FE9F0B',
            lineStyle: {
                width: 5,
                color: '#FE9F0B'
            },
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.accomplishment_before
        }, {
            name: '增值后',
            type: 'line',
            color: '#60B5F6',
            lineStyle: {
                width: 5,
                color: '#60B5F6'
            },
            label: {
                show: true,
                position: 'top',
                formatter: '{c}'
            },
            yAxisIndex: 1,
            data: myData.accomplishment_after
        }],
        graphic: lineList
    };
    return option;
}

var curTask = 0;
var curStuName = '刘芯蕾'//'查智超';

$("#tasks").change(function (e) {
    var val = $('#tasks option:selected').val();
    curTask = val - 1;
    refreshBarCharts(val);
});

var chartDom = document.getElementById('bar-charts-1');
var myChart = echarts.init(chartDom);


var chartDom2 = document.getElementById('bar-charts-2');
var myChart2 = echarts.init(chartDom2);


var chartDom3 = document.getElementById('bar-charts-3');
var myChart3 = echarts.init(chartDom3);


function refreshBarCharts(v) {
    var t;
    console.log(v)
    switch (v) {
        case '1': t = task1; break;
        case '2': t = task2; break;
        case '3': t = task3; break;
        case '4': t = task4; break;
        case '5': t = task5; break;
        case '6': t = task6; break;
    }
    console.log(t);
    var opt = obtainAcknowledgeOptionData(t);
    myChart.clear();
    myChart.setOption(opt);

    var opt2 = obtainCapacityOptionData(t);
    myChart2.clear();
    myChart2.setOption(opt2);

    var opt3 = obtainAccomplishmentOptionData(t);
    myChart3.clear();
    myChart3.setOption(opt3);
}

myChart.on('click', function (params) {
    curStu = params.dataIndex;
    curStuName = params.name;
    refreshRadar();
});

myChart2.on('click', function (params) {
    curStu = params.dataIndex;
    curStuName = params.name;
    refreshRadar();
});

myChart3.on('click', function (params) {
    curStu = params.dataIndex;
    curStuName = params.name;
    refreshRadar();
});

refreshBarCharts('1');